package dao;

import java.util.Iterator;
import java.util.List;
import java.util.Set;
import domain.Answer;
import domain.Question;

public interface QuestionDao {

	public abstract List<Question> list();

	public abstract Question findById(int Id);

	public abstract void save(Question	question );

	public abstract void update(Question	question );

	public abstract void delete(int id);
	public abstract Set<Answer> getAnswerSet(int questionId);
	public abstract Iterator<Answer> getAnswerIterator(int questionId);
}